import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Scanner;

/**
 * @Author: YCKOKO
 * @Date: 2023-05-10
 * @Time:15:15
 * @Description:
 */
public class demo1 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String str = scan.nextLine();
        List<String> lst = new ArrayList<>();
        lst = Arrays.asList(str.split(" "));
        String ret = "";
        for (int i = lst.size()-1; i >= 0; i--) {
            ret = ret + lst.get(i) + " ";
        }
        System.out.println(ret);
    }
}
